﻿@model IEnumerable<SystemContainer.Models.DataSet>

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<p>
    Add a new dataset to this algorithm:



</p>

<table>
    <tr>
        <th>
            name
        </th>
        <th>
            dir
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) 
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.dir)
        </td>
        <td>
            @Html.ActionLink("Delete", "DeleteDatasetRelation", new { algorithmId = ViewBag.algorithmId, datasetId=item.DataSetID })
        </td>
     </tr>
}

</table>


@using (Html.BeginForm("Match", "UploadFile", new { algorithmId = ViewBag.algorithmId}))
{
<p>
    Please select a new dataset for this algorithm:     
    @Html.DropDownList("UnmatchedDatas", String.Empty)
</p>

<p>
            <input type="submit" value="submit" />
</p>
} 